<?php
/*
 * @Author: your name
 * @Date: 2020-10-20 13:58:29
 * @LastEditTime: 2020-10-28 15:05:46
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /special/application/common/service/HostTag.php
 */

namespace app\common\service;

use think\Db;

class HostTag extends BaseService
{
    /**
     * @name: 话题展示
     * @Param: 
     * @Description: 
     * @Author: foo
     * @Date: 2019-03-27 10:18:52
     */
    public function showTag ($id_a = [], $field = '', $index = '')
    {
        $server = Db::name('HostTag');

        empty($id_a) ? : $server->whereIn('id', $id_a);

        empty($field) ? : $server->field($field);

        $tagData = empty($index) ? $server->select() : $server->column($field, $index);
        
        return $tagData;
    }
}